package com.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.DTO.StatisWareDTO;
import com.mall.pojo.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiao-chen
 * @since 2023-04-20
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    boolean payUpdateStatus(@Param("id") Long id,@Param("status") Integer status);

    List<StatisWareDTO> getWareStatis();

    List<StatisWareDTO> listWareStatisByWareId(@Param("wareId") Long wareId, @Param("start") Integer start, @Param("end") Integer end);
}
